package it11.Capood.DataLogic;

import java.util.Date;

public class BooleanMessage extends Message {
	
	private static final long serialVersionUID = 1L;
	private boolean value;
	
	public BooleanMessage(boolean input) {
		super(new Date(), Message.Type.BOOL);
		value = input;
	}
	
	public boolean getValue(){
		return value;
	}
	
	public String toString () {
		return String.valueOf(super.getType()) + "\n" + super.getDate();
	}

}
